package cn.itcast.i18n;

import java.text.MessageFormat;
import java.util.Date;
import java.util.Locale;

public class Demo4 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		String pattern = "On {0}, a hurricance destroyed {1} houses and caused {2} of damage.";
		
		MessageFormat format = new MessageFormat(pattern,Locale.CHINA);
		Object arr[] = {new Date(),99,100000000};
		
		String result = format.format(arr);
		System.out.println(result);
	}

}
